package com.project.frba.bi.dashboard;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.project.frba.bifront.client.model.Dashboard;

public class DualDashboardRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int index) throws SQLException {
		Dashboard dashboard = new Dashboard(Dashboard.DUAL);
		dashboard.setId(rs.getLong(1));
		dashboard.setName(rs.getString(2));
		dashboard.setFirst(rs.getString(4));
		dashboard.setSecond(rs.getString(5));
	
		return dashboard;
	}

}
